package com.sansi.pencilbook.service;

import com.sansi.pencilbook.DO.Result;
import com.sansi.pencilbook.Enum.BehaviorEnum;
import com.sansi.pencilbook.entity.UserBook;

/**
 * 功能说明: 用户和书籍的关系
 *
 * @author lsy13
 */
public interface UserBookServer {

    public Result getAllUserBook();

    //获得某一个用户的数据
    public Result getUserBookByUser(int userId);

    //获得某本书籍的数据
    public Result getUserBookByBook(String isbn);

    //获得某种行为的数据
    public Result getUserBookByBehavior(BehaviorEnum behaviorEnum);

    //获得用户特定行为的数据
    public Result getUserBookByUserBehavior(int userId, BehaviorEnum behaviorEnum);

    //获得用户和书籍的数据
    public Result getUserBookByUserBook(int userId, String isbn);

    //获取用户对某本书籍的特定行为数据
    public Result getUserBookByUserBookBehavior(int userId, String isbn, BehaviorEnum behaviorEnum);

    //添加用户和书籍的行为
    public Result addUserBook(UserBook userBook);

    public Result addUserBook(BehaviorEnum behaviorEnum, String isbn, int userId);

    public Result deleteUserBook(UserBook userBook);
}
